<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/12/1
 * Time: 18:17
 */

namespace app\api\controller;


use app\api\service\Token;
use app\lib\enum\ScopeEnum;
use think\Controller;

class BaseController extends Controller
{
    protected function checkBaseScope(){
        Token::needScope(ScopeEnum::User);
    }

    protected function checkOnlyUserScope(){
        Token::needScope(ScopeEnum::User,true);
    }

    protected function checkSuperScope(){
        Token::needScope(ScopeEnum::Super);
    }
}